﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="kartrisObjectConfig" targetNamespace="http://tempuri.org/kartrisObjectConfig.xsd" xmlns:mstns="http://tempuri.org/kartrisObjectConfig.xsd" xmlns="http://tempuri.org/kartrisObjectConfig.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="KartrisSQLConnection" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="KartrisSQLConnection (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.KartrisSQLConnection.ConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ObjectConfigTblAdptr" GeneratorDataComponentClassName="ObjectConfigTblAdptr" Name="ObjectConfig" UserDataComponentName="ObjectConfigTblAdptr">
            <MainSource>
              <DbSource ConnectionRef="KartrisSQLConnection (Web.config)" DbObjectName="[kartrisSQL_1.4].dbo.[_spKartrisObjectConfig_Get]" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="false" GeneratorGetMethodName="_GetData" GetMethodModifier="Public" GetMethodName="_GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="_GetData" UserSourceName="_GetData">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.[_spKartrisObjectConfig_Get]</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="OC_ID" DataSetColumn="OC_ID" />
              <Mapping SourceColumn="OC_Name" DataSetColumn="OC_Name" />
              <Mapping SourceColumn="OC_ObjectType" DataSetColumn="OC_ObjectType" />
              <Mapping SourceColumn="OC_DataType" DataSetColumn="OC_DataType" />
              <Mapping SourceColumn="OC_Description" DataSetColumn="OC_Description" />
              <Mapping SourceColumn="OC_VersionAdded" DataSetColumn="OC_VersionAdded" />
              <Mapping SourceColumn="OC_DefaultValue" DataSetColumn="OC_DefaultValue" />
              <Mapping SourceColumn="OC_MultilineValue" DataSetColumn="OC_MultilineValue" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="KartrisSQLConnection (Web.config)" DbObjectName="[kartrisSQL_1.4].dbo.[_spKartrisObjectConfig_GetValue]" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="_GetValue" Modifier="Public" Name="_GetValue" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="_GetValue">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.[_spKartrisObjectConfig_GetValue]</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@ConfigName" Precision="0" ProviderType="NVarChar" Scale="0" Size="100" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="bigint" DbType="Int64" Direction="Input" ParameterName="@ParentID" Precision="19" ProviderType="BigInt" Scale="0" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="KartrisSQLConnection (Web.config)" DbObjectName="[kartrisSQL_1.4].dbo.spKartrisObjectConfig_GetValue" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="GetValue" Modifier="Public" Name="GetValue" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="GetValue">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.spKartrisObjectConfig_GetValue</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@ConfigName" Precision="0" ProviderType="NVarChar" Scale="0" Size="100" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="bigint" DbType="Int64" Direction="Input" ParameterName="@ParentID" Precision="19" ProviderType="BigInt" Scale="0" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="kartrisObjectConfig" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_DataSetName="kartrisObjectConfig" msprop:Generator_UserDSName="kartrisObjectConfig">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="ObjectConfig" msprop:Generator_TableClassName="ObjectConfigDataTable" msprop:Generator_TableVarName="tableObjectConfig" msprop:Generator_TablePropName="ObjectConfig" msprop:Generator_RowDeletingName="ObjectConfigRowDeleting" msprop:Generator_UserTableName="ObjectConfig" msprop:Generator_RowChangingName="ObjectConfigRowChanging" msprop:Generator_RowEvHandlerName="ObjectConfigRowChangeEventHandler" msprop:Generator_RowDeletedName="ObjectConfigRowDeleted" msprop:Generator_RowEvArgName="ObjectConfigRowChangeEvent" msprop:Generator_RowChangedName="ObjectConfigRowChanged" msprop:Generator_RowClassName="ObjectConfigRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="OC_ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnOC_ID" msprop:Generator_ColumnPropNameInRow="OC_ID" msprop:Generator_ColumnPropNameInTable="OC_IDColumn" msprop:Generator_UserColumnName="OC_ID" type="xs:short" />
              <xs:element name="OC_Name" msprop:Generator_ColumnVarNameInTable="columnOC_Name" msprop:Generator_ColumnPropNameInRow="OC_Name" msprop:Generator_ColumnPropNameInTable="OC_NameColumn" msprop:Generator_UserColumnName="OC_Name">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="OC_ObjectType" msprop:Generator_ColumnVarNameInTable="columnOC_ObjectType" msprop:Generator_ColumnPropNameInRow="OC_ObjectType" msprop:Generator_ColumnPropNameInTable="OC_ObjectTypeColumn" msprop:Generator_UserColumnName="OC_ObjectType" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="OC_DataType" msprop:Generator_ColumnVarNameInTable="columnOC_DataType" msprop:Generator_ColumnPropNameInRow="OC_DataType" msprop:Generator_ColumnPropNameInTable="OC_DataTypeColumn" msprop:Generator_UserColumnName="OC_DataType" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="OC_Description" msprop:Generator_ColumnVarNameInTable="columnOC_Description" msprop:Generator_ColumnPropNameInRow="OC_Description" msprop:Generator_ColumnPropNameInTable="OC_DescriptionColumn" msprop:Generator_UserColumnName="OC_Description" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="OC_VersionAdded" msprop:Generator_ColumnVarNameInTable="columnOC_VersionAdded" msprop:Generator_ColumnPropNameInRow="OC_VersionAdded" msprop:Generator_ColumnPropNameInTable="OC_VersionAddedColumn" msprop:Generator_UserColumnName="OC_VersionAdded" type="xs:float" minOccurs="0" />
              <xs:element name="OC_DefaultValue" msprop:Generator_ColumnVarNameInTable="columnOC_DefaultValue" msprop:Generator_ColumnPropNameInRow="OC_DefaultValue" msprop:Generator_ColumnPropNameInTable="OC_DefaultValueColumn" msprop:Generator_UserColumnName="OC_DefaultValue" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="OC_MultilineValue" msprop:Generator_ColumnVarNameInTable="columnOC_MultilineValue" msprop:Generator_ColumnPropNameInRow="OC_MultilineValue" msprop:Generator_ColumnPropNameInTable="OC_MultilineValueColumn" msprop:Generator_UserColumnName="OC_MultilineValue" type="xs:boolean" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:ObjectConfig" />
      <xs:field xpath="mstns:OC_ID" />
    </xs:unique>
  </xs:element>
</xs:schema>